package cn.com.maven.designpattern.abstractFactory;

/**
 * @Author YongQiang
 * @Date 2021/5/19 15:30
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        AbstractFactory factory = null;
        factory = new HaierFactory();
        factory.createTv().show();
        factory.createFreezer().open();
        factory=new GeliFactory();
        factory.createTv().show();
        factory.createFreezer().open();
    }
}

